# -*- mode: snippet -*-
# name: pathlib choose attributes
# key: pathlib.attributes.choose
# contributor: Shuguang Sun
# --
${1:$$(yas-choose-value '("name" "stem" "suffix" "parent" "anchor"
                          "absolute()" "is_dir()" "is_file()" "exists()"
                          "joinpath('dir', 'file.txt')" "mkdir(parents = True)"
                          "rmdir()" "unlink()"
                          "replace('new_archive/new_demo.txt')"
                          "open()" "read_text()" "read_bytes()" "write_text()" "write_bytes(b'new words')"
                          "glob('*.csv')" "rglob('*.csv')"
                          "with_suffix('.json')"
                          "touch(exist_ok = True)"
                          "stat()" "stat().st_size" "stat().st_atime" "stat().st_ctime" "stat().st_mtime"))}